Ruby on Rails website project construction simple guide, rubyrails
Create a Rails Project
To create a common Rails project, run the following command:
rails new blog
However, in China, because it is too slow to connect to RubyGems
Ruby Resources
Home to http://rubygems.org gem Resources
Http://rubyforge.org/
Http://www.ruby-lang.org/en/rubyofficial website
Http://www.ruby-doc.org/Ruby Doc and API
Ftp://ftp.ruby-lang.org/pub/ruby/ruby version FTP
Http://www.kuqin.com/rubycndocument/index.ht
automatically creates the file structure and initializes the template according to the MVC model. The file structure after creation is as follows:Note: If you do not create a successful, please do not worry, it may be some dependent file virtual machine is not the default, then you need to follow the failure of the prompt information, install the corresponding dependent package. Rebuild after installation is complete.(2) Modify the Gemfile file and
use and has high performance. According to the test results published on the official Passenger website, Passenger is superior to the Mongrel server. Currently, passenger is undoubtedly the best choice. Passenger inherits the Rails "do not repeat yourself" convention. to deploy an application through Passenger, you only need to upload the Rails project file to t
major Apache and Nginx WEB servers. Passenger is extremely convenient to use, and it has high performance, from the passenger official website published test results, passenger performance is better than the Mongrel server, at present, passenger is undoubtedly the best choice. Passenger inherits the practice of rails "do not repeat itself," and by passenger the application, you simply upload the
languages, you also need to prepare other files ):
[1] En. yml (English version)
[2] zh-CN.yml (Simplified Chinese)2.3 Step 3: edit the config/locales folder (1)
For example, in this folder, we can see that there is only one file: En. yml. Open it and find that there are only two lines of code:
en: hello: "Hello world"
This is a yml file template. Now we need to replace it with the above en. yml
Click "EN. yml" to open the file, copy and paste the
Ruby on Rails ...... It has nothing to do with. net ...... The homepage is for more people to access Ruby on Rails ...... Withdraw tomorrow ...... Http://www.blogwind.com/Wuvist/16993.shtml
By the way, I use Mac, and the cute editor used in blog Park has become a text area in safari. However, the latest version of cute
Use Ruby on Rails to quickly develop web applications.
Ruby on Rails is impacting the entire Web development field. Let's first understand the underlying technologies:
Ruby is a free, simple, intuitive, scalable, portable, and interpreted scripting language for fast and simp
. Nonetheless, you can modify the layout of those Web pages-colors, fonts, tables, style sheets, and so on-regardless of the controller code.View
The Rails view is where we write Ruby code. Rails contains a very good template language for. rhtml, which combines pure HTML with embedded
Reprint, original link http://linux.cn/portal.php?mod=viewaid=170 using Ubuntu to build a Ruby on Rails Local development environment
Want to develop a Ruby on Rails app? Although there are already some (beginner) Ruby on Ra
has a kind of thing called GFW, full name is great Firewall, commonly known as "the Wall". (More on Wikipedia), simply speaking, it leads meThere are no direct access to many websites and services. This wall has seriously affected everyone's life, especially it people, because there are countless good sites, good service has been blocked. And for those who are learning Ruby and Rails, the wall is more dire
Build RubyMine + Ruby On Rails + MySQL development environment in Windows
I recently took over a mobile phone project. Some problems have been encountered during the environment setup process. We have recorded the problems in the following article and offered our solutions.
Development Environment: Windows 2003; JetBrains RubyMine6.3.3
1. download the latest version of
After playing Ruby, you can now play with rails:C:/instantrails/Ruby/bin> rails C:/instantrails/rails_apps/mybookIn the C:/instantrails/rails_apps/object, the application of the primary mybook and the related cases will be created.
RowsRuby C:/instantrails/rails_apps/mybook/script/ServerOr to instant rails> I>
Install Ruby on Rails in Ubuntu 15.04
In this article, we will learn how to use rbenv to install Ruby on Rails in Ubuntu 15.04. We chose Ubuntu as the operating system because Ubuntu is an operating system with many packages and complete documents in the Linux release, so I think this is the right choice. If you have n
successful. For example:
5. Create a blank rails Project
Run: rails new rubyprogram to create a rails project structure named rubyprogramm.
Note: In the referenced references, it is to run rails rubyprogramm. It is not wrong, but different rails versions. Note that
Resource Center, you can quickly find technical reference resources that can help you complete the development of applications associated with Ajax.
A bit of a note about Rails
So what exactly is Rails? Rails is a WEB application platform built on the Ruby programming language.
No exception. Like all other open-source projects, if you want to enter the Ruby on Rails world, you will find very difficult, rarely documented, and scattered,The downloaded file lacks basic instructions. My personal experience is a typical example. If you don't talk nonsense, let's start with the following: 1. installation environment Ruby on
simple. 5. rife is based on the request framework 6 and rife have too many functions, steep learning curve6. What do you think of Ruby on Rails?Ror has a great impact on the Java Community, and the Yuan compilation has also gained trust. Ror has nothing to do with, and has not benefited much from the ruby language.I hate: its
The production and Running Environments recommended by Ruby on Rails are Linux/FreeBSD/Unix, that is, UNIX operating systems. They use Lighttpd + fcgi solutions. I will take the Linux operating system, Lighttpd + fcgi, MySQL database as an example, from
Source code Compilation and installation start. Before installation, ensure that the GCC compiler has been installed in the Linux operating system. Otherwi
configuration information will be created in MSYQL.5) We use scaffold to generate the code and enter the following command in CMD:Rails Generate scaffold Post title:string body:string addtime:datetimeThe controller, views, models, and database scripts are created at this time, but no table is created yet.Re-enter: Rake db:migrate create table. Complete.6) Execute Command Rails serverAccess via Browser: http://localhost:3000/posts This page has genera
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.